-- GENERATED SPELL FOR [Shadow Priestess Vandis] --


function spell0_11055(pUnit, Event) --@Power Word: Fortitude,n/a--
pUnit:FullCastSpellOnTarget(23947,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11055', 642, 1)
end

function spell1_11055(pUnit, Event) --@Power Word: Fortitude,n/a--
pUnit:FullCastSpellOnTarget(23948,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11055', 684, 1)
end

function Sorts_11055(pUnit, Event)
local choix_sorts_11055 = math.random(0, 1)
if choix_sorts_11055 == 0 then
pUnit:RegisterEvent('spell0_11055', 1, 1)
end
if choix_sorts_11055 == 1 then
pUnit:RegisterEvent('spell1_11055', 1, 1)
end
end

function mob11055_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11055', math.random(1500, 3000), 1)
end

function mob11055_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11055_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11055_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11055, 1, 'mob11055_Action')
RegisterUnitEvent(11055, 2, 'mob11055_Leave')
RegisterUnitEvent(11055, 3, 'mob11055_Kill')
RegisterUnitEvent(11055, 4, 'mob11055_Die')
